<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h3>箭头函数，新标准</h3>
	</body>
	<script type="text/javascript">
		var js0 = function(){
			console.log("js0 无参")
		}
		js0();
		
		// var es0 = () =>{
		// 	console.log("es0 无参")
		// }
		//如果｛｝只有一条语句，可以省略｛｝
		var es0=()=>console.log("es0 无参")
		es0();
		var js1=function(arg){
			console.log(arg)
		}
		js1("有参")
		
		var es1=(arg)=>console.log("有参"+arg)
		es1(123)
		
		var js2=function(a,b){
			console.log(a+b)
		}
		js2(54,885)
		var es1=(a,b)=>a+b
		console.log(es1(123,456))
	</script>
</html>
